# https://leetcode-cn.com/problems/design-parking-system/
# 1603. 设计停车系统
class ParkingSystem:

    def __init__(self, big: int, medium: int, small: int):
        self.carpart={"big":big,"medium":medium,"small":small}
        self.enum={1:"big",2:"medium",3:"small"}

    def addCar(self, carType: int) -> bool:
        if self.carpart[self.enum[carType]]>0 :
            self.carpart[self.enum[carType]]-=1
            return True
        else :
            return False


